//
//  BMUserInfo.h
//  BicycleMap
//
//  Created by vedon on 5/15/16.
//  Copyright © 2016 Qianqian. All rights reserved.
//


#import <CTPersistance/CTPersistance.h>
#import "GSMapManager.h"

typedef NS_ENUM(NSInteger,BMGender)
{
    BMGender_female,
    BMGender_male,
};

@interface BMUserInfo : CTPersistanceRecord
@property (nonatomic,strong) NSString *identifier;
@property (nonatomic,strong) NSString *avObjectId;

@property (nonatomic,strong) NSString *username;
@property (nonatomic,strong) NSString *mobile;
@property (nonatomic,strong) NSString *location;
@property (nonatomic,assign) BMGender gender;
@property (nonatomic,strong) NSString *avatarUrl;

- (instancetype)initWithUsername:(NSString *)name mobile:(NSString *)mobile location:(CLLocationCoordinate2D)location;

- (void)configureWithUsername:(NSString *)username mobile:(NSString *)mobile location:(CLLocationCoordinate2D)location;

- (void)setUserLocation:(CLLocationCoordinate2D)location;

- (CLLocationCoordinate2D)coordinate;

@end
